.class public Lcom/TwinBlade/PicturePassword/al;
.super Landroid/widget/FrameLayout;
.source "SourceFile"


# static fields
.field public static a:Z


# instance fields
.field private b:Z

.field private c:Z

.field private d:Landroid/content/Context;

.field private e:Landroid/os/Handler;

.field private f:Landroid/content/SharedPreferences;

.field private final g:Landroid/view/GestureDetector;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x1

    .line 22
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 38
    new-instance v0, Landroid/view/GestureDetector;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    new-instance v2, Lcom/TwinBlade/PicturePassword/am;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/am;-><init>(Lcom/TwinBlade/PicturePassword/al;)V

    invoke-direct {v0, v1, v2}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->g:Landroid/view/GestureDetector;

    .line 23
    invoke-virtual {p0, v3}, Lcom/TwinBlade/PicturePassword/al;->setFocusable(Z)V

    .line 24
    invoke-virtual {p0, v3}, Lcom/TwinBlade/PicturePassword/al;->setFocusableInTouchMode(Z)V

    .line 26
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->e:Landroid/os/Handler;

    .line 27
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    .line 29
    invoke-static {p1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->f:Landroid/content/SharedPreferences;

    .line 30
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->f:Landroid/content/SharedPreferences;

    const-string v1, "LongPressSuspend"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/TwinBlade/PicturePassword/al;->b:Z

    .line 31
    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/al;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 18
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->e:Landroid/os/Handler;

    return-object v0
.end method

.method private a()V
    .locals 2

    .prologue
    .line 85
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    .line 86
    if-eqz v0, :cond_0

    .line 87
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->d(Z)V

    .line 89
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/al;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 14
    iput-boolean p1, p0, Lcom/TwinBlade/PicturePassword/al;->c:Z

    return-void
.end method

.method static synthetic b(Lcom/TwinBlade/PicturePassword/al;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 19
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->f:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method private b()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 92
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/ak;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/ak;

    move-result-object v0

    .line 93
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/ak;->a()V

    .line 94
    iput v3, v0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    .line 95
    invoke-virtual {v0, v3}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    .line 96
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V

    .line 98
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    const v2, 0x7f0900c0

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x3

    invoke-static {v0, v1, v2, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 99
    return-void
.end method

.method static synthetic c(Lcom/TwinBlade/PicturePassword/al;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 17
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->d:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic d(Lcom/TwinBlade/PicturePassword/al;)Z
    .locals 1
    .parameter

    .prologue
    .line 13
    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/al;->b:Z

    return v0
.end method

.method static synthetic e(Lcom/TwinBlade/PicturePassword/al;)Z
    .locals 1
    .parameter

    .prologue
    .line 14
    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/al;->c:Z

    return v0
.end method

.method static synthetic f(Lcom/TwinBlade/PicturePassword/al;)V
    .locals 0
    .parameter

    .prologue
    .line 84
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/al;->a()V

    return-void
.end method

.method static synthetic g(Lcom/TwinBlade/PicturePassword/al;)V
    .locals 0
    .parameter

    .prologue
    .line 91
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/al;->b()V

    return-void
.end method


# virtual methods
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/al;->g:Landroid/view/GestureDetector;

    invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method
